import os

ENV = os.getenv('API_ENV', 'dev')
print('ENV ', ENV)
try:
    if ENV == 'dev':
        from .local_config import *  # noqa
    elif ENV == 'test':
        from .test_config import *  # noqa
    elif ENV.startswith('prod'):
        from .pro_config import *  # noqa
except Exception as e:
    print('*** Import local config failed ***')
    print(e)


export = [
    DEBUG,
    ALLOWED_HOSTS,
    CELERY_BROKER_URL,
    # CELERY_RESULT_BACKEND,
    RAVEN_CONFIG,
]
